import request from "../utils/request";

const prefix='/user-service/user/'

export function getUser(param){
    return request({
        url:prefix.concat('get'),
        method:'get',
        params:param
    })
}

export function listUser(param){
    return request({
        url:prefix.concat('list'),
        method:'get',
        params:param
    })
}

export function pageUser(param){
    return request({
        url:prefix.concat('page'),
        method:'get',
        params:param
    })
}

export function saveUser(param){
    return request({
        url:prefix.concat('save'),
        method:'post',
        data:param
    })
}

export function updateUser(param){
    return request({
        url:prefix.concat('update'),
        method:'post',
        data:param
    })
}
export function deleteUser(param){
    return request({
        url:prefix.concat('delete'),
        method:'post',
        data: param
    })
}
